package pro.cherish.knowledgedemovalid.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("包装模型")
public class UserWraper {

    @Valid
    private UserEntity userEntity;

    @ApiModelProperty("包装名")
    @NotNull
    @Length(min = 2)
    private String wraperName;

}
